<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<script type="text/javascript" language="JavaScript" src="js/global.js"></script>
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>

<script type="text/javascript" language="javascript" src="mode/house/js/house.js"></script>
<script type="text/javascript" language="javascript" src="mode/house/js/brokergroup.js"></script>
<h2 class="h1">经纪人组权限</h2>
<form action="{$basename}&action=update" method="post">
<div class="admin_table mb10">
	<table width="100%" cellspacing="0" cellpadding="0">
	<tbody id="memBody">
		<tr class="tr2 vt">
			<td width="60">&nbsp;</td>
			<td width="180">头衔</td>
			<td width="80">成员统计</td>
			<td>操作</td>
		</tr>
<!--
EOT;
foreach($groups as $value){
print <<<EOT
-->
		<tr class="tr1">
			<td class="td2">组{$value[groupid]}</td>
			<td class="td2"><input type="text" value="$value[name]" name="name[{$value[groupid]}]" class="input input_wa" /></td>
			<td class="td2">$value[usernum]</td>
			<td class="td2">
				<a class="mr20" href="{$basename}&action=edit&groupid={$value[groupid]}">[编辑]</a>
				<a class="mr20" href="javascript:;" onclick="parent.PW.Dialog({'id': 'house_broker','name': '经纪人管理','url': '$admin_file?adminjob=mode&admintype=house_broker&groupid={$value[groupid]}','max': false});return false;">[成员管理]</a>
				<a class="mr20" href="javascript:;" onclick="delGroup('$ajaxUrl','$value[groupid]','$value[usernum]');">[删除]</a>
			</td>
		</tr>
<!--
EOT;
}
print <<<EOT
-->
		</tbody>
		<tbody id="memTable">
            <tr><td colspan="4"></td></tr>
            <tr id="addmem" class="tr1 td_bgA" style="display:none">
            	<td class="td2"><a href="javascript:;" onclick="addRecord('addmem','memTable')"><i class="expand expand_c" style="margin:4px 2px 0 0;"></i>添加</a></td>
                <td class="td2"><input type="text" value="" name="add[]" class="input input_wa" /></td>
				<td class="td2"></td>
				<td class="td2">
					<a href="javascript:;" class="mr20" onclick="delRecord('addmem','memTable',this)">[删除]</a>
				</td>
            </tr>
            <tr class="tr1 td_bgA">
            	<td class="td2"><a href="javascript:;" onclick="addRecord('addmem','memTable')"><i class="expand expand_c" style="margin:4px 2px 0 0;"></i>添加</a></td>
                <td class="td2"><input type="text" value="" name="add[]" class="input input_wa" /></td>
				<td class="td2"></td>
				<td class="td2">
					<a href="javascript:;" class="mr20" onclick="delRecord('addmem','memTable',this)">[删除]</a>
				</td>
            </tr>
		</tbody>
    </table>
</div>

<div class="tac mb10">
	<span class="btn" id="submit"><span><button onfocus="blur();" type="submit">提 交</button></span></span>
</div>
</form>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->